package Day5;

import java.util.Scanner;
// 1:无需package
// 2: 类名必须Main, 不可修改

public class Main2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int n = scan.nextInt();
        int[] a = new int[n];
        int[] b = new int[n];
        double[] c = new double[n];
        int count = 1;

        for(int i = 0; i < n; i++){
          a[i] = scan.nextInt();
          b[i] = scan.nextInt();

          //如果是第1条直线平面数量必然加一
          if(i == 0){
            count++;
            continue;
          }
          
          //判断是否有相同的直线
          int flag = 0;
          for(int e = 0; e < i; e++){
            if(a[e] == a[i] && b[e] == b[i]){
              flag = 1;
            }
          }
          
          //有相同的指向，进行去重
          if(flag == 1){
            //除去这条直线，同时让总的直线个数减一
            i--;
            n--;
            continue;
          }
          
          //判断是否有直线平行
          int f = 0;
          for(int j = 0; j < i; j++){
            if(a[j] == a[i]){
              //记录平行直线的个数,同时如果平行平面的个数也会加一
              f++;
              continue;
            }

            //判断是否有交点重合(交点不重复等价于x交点不重复)
            c[j - f] = (double)(b[j] - b[i]) / (double)(a[j] - a[i]);//判断x交点是否重合
            flag = 0;
            for(int k = 0; k < j - f; k++){
              if(c[k] == c[j - f]){
                flag = 1;
                continue;
              }
            }

            if(flag == 0){
              count++;
            }
          }
          count++;
        }
        System.out.println(count);
        scan.close();
    }
}